package cm.cool.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cm.cool.web.bean.Notice;
import cm.cool.web.service.notice.NoticeService;
import cm.cool.web.util.respon.PaginationDto;
import cm.cool.web.util.respon.R;

@Controller
@RequestMapping("/Notice")
public class NoticeController {
	
	@Autowired
	NoticeService noticeService;
	
	
	/**
	 * 查找所有的警告信息
	 * @param notice
	 * @param paginationDto
	 * @return
	 */
	@ResponseBody
	@RequestMapping("/selectByAll")
	public R selectByAll(Notice notice,PaginationDto paginationDto){
		return noticeService.selectNoticeAll(notice, paginationDto);
	}
}
